home *** CD-ROM | disk | FTP | other *** search
/ PC-SIG Library 8 / PC-SIG Library CD-ROM (8th Edition) (1990-04).iso / 201_300 / disk0216 / writes.c < prev   
Encoding:
C/C++ Source or Header  |  1984-06-25  |  944 b   |  25 lines

  1. /*                          *** writes.c ***                        */
  2. /*                                                                   */
  3. /* IBM - PC microsoft "C"                                            */
  4. /*                                                                   */
  5. /* Function to write a string to stdout.                             */
  6. /* Returns the number of characters written including the NULL.      */
  7. /*                                                                   */
  8. /* written by L. Cuthbertson, March 1984.                            */
  9. /*                                                                   */
  10. /*********************************************************************/
  11. /*                                                                   */
  12.  
  13. #define NULL '\000'
  14.  
  15. int writes(s)
  16. char s[];
  17. {
  18.     int i,writec();
  19.  
  20.     for (i=0;(s[i] != NULL);i++)
  21.         writec(s[i]);
  22.  
  23.     return (i);
  24. }
  25.